import { request } from 'ice';
import qs from 'qs';

export interface LoginPrams {
  email?: string;
  password?: string;
  autoLogin?: boolean;
}

export function login(data: LoginPrams) {
  // @ts-ignore
  return request.post<string>('/erp/login/mail', qs.stringify(data), { ignoreAuth: true });
}
